﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using Model;
using MsDAL;
using System.ComponentModel;

namespace ServiceHelper
{
   [DataObjectAttribute]
   public  partial  class Psn0a01Base
    {
		protected  Psn0a01DAL psn0a01Dal = new Psn0a01DAL();
      			
		/// <summary>
        /// 增加一条数据
        /// </summary>
        public virtual SqlApp Add(Model.Psn0a01 psn0a01)
        {
			return psn0a01Dal.Add( psn0a01);
        }

		
        /// <summary>
        /// 判断某个值是否存在表中的某个字段
        /// </summary>
        /// <param name="Condition">条件字段名 例:A=@A</param>
        /// <param name="hs">参数和值 如hs["@A"]=123</param>
        /// <returns></returns>
        public virtual bool Exists(String condition, Hashtable hs)
   		{
			return psn0a01Dal.Exists( condition, hs);		
        }
		

        /// <summary>
        /// 根据条件和参数得到Psn0a01对象
        /// </summary>
        /// <param name="Condition">Sql条件</param>
        /// <param name="hs">参数和值</param>
        /// <returns></returns>
        public virtual Model.Psn0a01 GetModel(String Condition, Hashtable hs)
        {
			return psn0a01Dal.GetModel(Condition,hs);
        }

		
		public virtual DataTable GetList(string condition,Hashtable hs)
		{
			return psn0a01Dal.GetList(condition, hs);
		}		
    }
}